package com.hdu.heihei.action;

import com.hdu.heihei.service.impl.UserServiceImpl;
import com.opensymphony.xwork2.ActionSupport;
import org.apache.struts2.interceptor.RequestAware;

import java.util.Map;

/**
 * @Author: Dempsey
 * @Date: 2020/11/20 13:02
 * @Description:
 */
public class UserAction extends ActionSupport implements RequestAware {
    private static final long SerialVersionUID = 1L;

    private UserServiceImpl userServiceImpl;

    public void setUserServiceImpl(UserServiceImpl userServiceImpl){
        this.userServiceImpl = userServiceImpl;
    }

    @Override
    public void setRequest(Map<String, Object> map) {
        this.request = map;
    }

    private Map<String, Object> request;
    
    public String list(){
        request.put("Users",userServiceImpl.getAll());
        return "list";
    }



}
